home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / lists / lappend < prev    next >
Encoding:
Text File  |  1993-10-26  |  794 b   |  20 lines  |  [TEXT/$Tcl]

  1.  
  2.           lappend varName value ?value value ...?
  3.  
  4.  
  5.      DESCRIPTION
  6.           This command treats the variable given by varName as a  list
  7.           and  appends  each  of the value arguments to that list as a
  8.           separate element, with spaces between elements.  If  varName
  9.           doesn't  exist,  it is created as a list with elements given
  10.           by the value arguments.  Lappend is similar to append except
  11.           that  the  values  are appended as list elements rather than
  12.           raw text.  This command provides a relatively efficient  way
  13.           to  build  up large lists.  For example, ``lappend a $b'' is
  14.           much more efficient than ``set a  [concat  $a  [list  $b]]''
  15.           when $a is long.
  16.  
  17.  
  18.      KEYWORDS
  19.           append, element, list, variable
  20.